װ
1.ڡviewthread.php

include template('viewthread');
ƴӣ



//===========Ͻ 7.0=========

        $query = $db->query("SELECT f.fid, f.name, f.type, ff.fid, ff.moderators FROM {$tablepre}forums f

                LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid WHERE f.type = 'group'");

        while($admintemp = $db->fetch_array($query)) {

                $temp = split("\t", $admintemp['moderators']);

                foreach($temp as $tempname) {

                        $tempname = trim($tempname);

                        if($tempname != "") {

                                $adminarray[$tempname] .= "<tr><td class=\"popupmenu_option\"><a href=\"index.php?gid=".$admintemp['fid']."\" target=\"_blank\">".$admintemp['name']."</a></td></tr>";

                        }

                }

        }

        $query = $db->query("SELECT f.fid, f.name, f.type, ff.fid, ff.moderators FROM {$tablepre}forums f

                LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid WHERE f.type = 'forum' OR type ='sub'");

        while($admintemp = $db->fetch_array($query)) {

                $temp = split("\t", $admintemp['moderators']);

                foreach($temp as $tempname) {

                        $tempname = trim($tempname);

                        if($tempname != "") {

                                $adminarray[$tempname] .= "<tr><td class=\"popupmenu_option\"><a href=\"forumdisplay.php?fid=".$admintemp['fid']."\" target=\"_blank\">".$admintemp['name']."</a></td></tr>";

                        }

                }

        }        

//===========Ͻ 7.0=========
ƴڡviewthread_node.htmģҵ

<p><em>$post[authortitle]</em></p>
ƴӣ<!------Ͻ 7.0------->

<!--{if !empty($adminarray[$post[username]])}-->

                        <p><span id="mod_{$post[pid]}" class="dropmenu" onmouseover="showMenu(this.id)"><b>Ͻ</b></span></p>

                        <ul class="popupmenu_popup" id="mod_{$post[pid]}_menu" style="display: none">

                        <table cellpadding="4" cellspacing="0" border="0">

                        $adminarray[$post[username]]

                        </table></ul>

                <!--{/if}-->

<!------Ͻ 7.0------->
» ɣ